Skip to main content

Token Metadata by Id

Queries token metadata information for the specified token Id.

query Token($tokenId: String!) {
token {
token_metadata_by_id(token_id: $tokenId) {
coinDecimal
displayName
tokenId
description
image
price
price_change_24h
price_change_7d
dex
chain_uids
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://devnet-testing.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token($tokenId: String!) {\n token {\n token_metadata_by_id(token_id: $tokenId) {\n coinDecimal\n displayName\n tokenId\n description\n image\n price\n price_change_24h\n price_change_7d\n dex\n chain_uids\n }\n }\n}","variables":{"tokenId":"usdc"}}'

Open in Playground

Arguments

  • tokenId (String!): The unique identifier for the token.

Return Fields

FieldTypeDescription
coinDecimalIntThe number of decimal places used by the token.
displayNameStringThe display name of the token.
tokenIdStringThe unique identifier for the token.
descriptionStringA brief description of the token.
imageStringURL to the token's image.
priceFloatThe current price of the token in USD.
price_change_24hFloatThe token's price change over the past 24 hours.
price_change_7dFloatThe token's price change over the past 7 days.
dexStringThe decentralized exchanges where the token is traded.
chain_uids[String]A list of chain UIDs where the token is available.